<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

	$router->resource('agents', 'AgentController');

	$router->resource('areas', 'AreaController');

	$router->get('api/areas', 'AreaController@options');

	$router->resource('shops', 'ShopController');

	$router->resource('staffs', 'StaffController');
});
